<?php

class garantia extends Basegarantia
{
    public function getModelosxingresosId(){
        $modelo = modelosxingresosPeer::retrieveByPK(parent::getModelosxingresosId());
        return $modelo->getmodelos()->__toString();

    }
    public function getReparacion1(){
        $sfguard = sfGuardUserPeer::retrieveByPK(parent::getReparacion1());
        if($sfguard)
           return $sfguard->getUsername();
        else
            return null;
    }
    public function getVolvioAReparar(){
        $sfguard = sfGuardUserPeer::retrieveByPK(parent::getVolvioAReparar());
        if($sfguard)
            return $sfguard->getUsername();
        else
            return null;
    }
    public function getRegistradoPor(){
        $sfguard = sfGuardUserPeer::retrieveByPK(parent::getRegistradoPor());
        if ( $sfguard)
           return $sfguard->getUsername();
        else
           return null;
    }
    
}
